<?php

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/

Route::get('/', function (){
    return view('index');
});


// pc端登录页
Route::get('pc/login','Pc\LoginController@index');

// pc端隐私页
Route::get('pc/agreement','Pc\LoginController@agreement');

//发送短信
Route::post('send_sms','\App\Modules\System\Controllers\CommonController@sendSms');

// pc端登录验证
Route::post('pc/login','Pc\LoginController@login');
// pc端退出登录
Route::get('pc/logout','Pc\LoginController@logout');

//pc端会员转移
Route::group(['namespace' => 'Pc', 'prefix' => 'pc','middleware'=>'pc'], function () {
    //首页
    Route::get('index/{store_id}','VipcardController@index');
    //文件上传操作
    Route::post('excelUpload','VipcardController@excelUpload');
    //文件导入中
    Route::get('excelPut/{fileName}/{store_id}','VipcardController@excelPut');
});

//下载页
Route::get('download','Phone\PhoneController@download');

//邀请码图片
Route::get('invite_img/{invite_code}','\App\Modules\Partner\Controllers\PartnerController@inviteImg');